import React, {Component} from "react";
import { Button, message } from "antd";
import AddTodo from "../../containers/AddTodo";
import * as util from "../../utils/util";

class Index extends Component {
	handleClickRouter = () => {
		this.props.history.push("/product/list");
	}

	render() {
		return (
			<div>
				<AddTodo name="xxx" {...this.props} routerClick={this.handleClickRouter} />
				<Button type="primary" onClick={() => message.info(util.add(1, 2))}>Click</Button>
			</div>
		);
	}
}

export default Index;
